package org.example.design.test;

//饿汉单例
public class Singleton {
    private static Singleton instance=new Singleton();

    public static Singleton getSingleton(){
        return instance;
    }

    private Singleton(){

    }
}
